@inject ILocalizer Localizer
@{
    var inputDescriptor = EditorContext.InputDescriptor;
    var displayName = inputDescriptor.DisplayName;
    var description = inputDescriptor.Description;
}

<ExpressionInput EditorContext="@EditorContext">
    <ChildContent>

        <MudChipField
            @ref="_chipField"
            T="string"
            Label="@Localizer[displayName]"
            Lines="1"
            WrapChips="true"
            Margin="Margin.Dense"
            Values="@(_items.Select(x => x.StatusCode.ToString()).ToList())"
            Variant="Variant.Outlined"
            HelperText="@Localizer[description]"
            Immediate="true"
            AutoSize="true"
            ForceShrink="true"
            ChipColor="Color.Primary"
            ChipSize="Size.Medium"
            ChipVariant="Variant.Filled"
            OnKeyDown="@OnKeyDown"
            ValuesChanged="@OnValuesChanges"
            ReadOnly="EditorContext.IsReadOnly"
            Disabled="EditorContext.IsReadOnly"/>

    </ChildContent>
</ExpressionInput>